import { createApp } from "vue";
import { createPinia } from "pinia";

// 完整引入ElementPlus的包和css
// import ElementPlus from "element-plus";
// import "element-plus/dist/index.css";

import App from "./App.vue";
import router from "./router";

// css的重置文件
import "./assets/css/reset.less";

// 引入组件库的小图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

// 把组件库的css引入一下
import "element-plus/dist/index.css";

const app = createApp(App);

app.use(createPinia());
app.use(router);
// app.use(ElementPlus);

// 使用组件库的小图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.mount("#app");
